<!--
////////////////////////////////////////////////////////////////////
//                          _ooOoo_                               //
//                         o8888888o                              //
//                         88" . "88                              //
//                         (| ^_^ |)                              //
//                         O\  =  /O                              //
//                      ____/`---'\____                           //
//                    .'  \\|     |//  `.                         //
//                   /  \\|||  :  |||//  \                        //
//                  /  _||||| -:- |||||-  \                       //
//                  |   | \\\  -  /// |   |                       //
//                  | \_|  ''\---/''  |   |                       //
//                  \  .-\__  `-`  ___/-. /                       //
//                ___`. .'  /--.--\  `. . ___                     //
//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
//      ========`-.____`-.___\_____/___.-`____.-'========         //
//                           `=---='                              //
//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
//                           佛祖保佑   http://dlj.bz              //
////////////////////////////////////////////////////////////////////
-->
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="Keywords" content="免费快速纯净无广告免费短网址在线生成网站u1rl.cn短链接、短网址、网址压缩、免费链接在线生成">
    <meta name="Description" content="免费短网址在线生成、免费链接在线生成为您提供所有网址包括图片、flash、mp3、rar、7z等所有互联网地址，免费快速纯净无广告短网址压缩网站！">
    <title>登录 - 免费好用短链接在线生成免费短链接在线生成快速纯净无广告网址压缩</title>
    <link href="res/css/bootstrap.min.css" rel="stylesheet" />
    <link href="res/css/bootstrap-responsive.min.css" rel="stylesheet" />
    <link href="res/lib/artdialog/ui-dialog.css" rel="stylesheet" />
    <!--<link rel="stylesheet" href="res/lib/progressbar/css/style.css" media="screen" type="text/css" />-->
    <link href="res/css/i.css?3" rel="stylesheet" />
    <link href="res/css/docs.css?3" rel="stylesheet" />
    <link href="res/css/my.css?3" rel="stylesheet" />
    <script src="res/js/jquery.js"></script>
    <script src="res/lib/jQuery-qrcode/jquery.qrcode.min.js"></script>
    <script src="res/lib/artdialog/dialog-min.js"></script>
    <script src="res/lib/clipboard.min.js"></script>
    <link href="https://cdn.bootcss.com/toastr.js/2.1.4/toastr.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/toastr.js/2.1.4/toastr.min.js"></script>
    <script src="res/js/i.js"></script>
    <script src="config.js"></script>
    <script src="res/lib/layer/layer.js"></script>
    <script src="res/js/websocket.js"></script>
    <style>
        .bs-docs-example:after {
            content: "修改个人信息";
        }
    </style>
</head>
<body>
<div id="header"></div>
<div class="container" style="margin-top: 26px;">

    <!-- Docs nav
    ================================================== -->
    <div class="row">
        <div class="span3 bs-docs-sidebar">
            <ul class="nav nav-list bs-docs-sidenav">
                <li><a href="./index.html"><i class="icon-chevron-right"></i> 首页</a></li>
                <li><a href="./config.html"><i class="icon-chevron-right"></i> 管理员配置</a></li>
                <li class="active"><a href="#"><i class="icon-chevron-right"></i> 个人信息</a></li>
                <li><a href="./resetPassword.html"><i class="icon-chevron-right"></i> 修改密码</a></li>
                <li><a href="./apiKey.html"><i class="icon-chevron-right"></i> api秘钥</a></li>
                <li><a href="./api.html"><i class="icon-chevron-right"></i> api文档</a></li>
                <li ><a href="javascript:SubmitLogout()"><i class="icon-chevron-right"></i> 退出</a></li>

            </ul>
        </div>
        <div class="span9 subCon bs-docs-example">
            <form class="form-horizontal">
                <div class="control-group">
                    <label class="control-label" for="username">用户名</label>
                    <div class="controls">
                        <input type="text" id="username" placeholder="username" th:value="${vo.username}" disabled>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="nickname">昵称</label>
                    <div class="controls">
                        <input type="text" id="nickname" placeholder="请完善昵称" th:value="${vo.nickname}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="nickname">手机号</label>
                    <div class="controls">
                        <input type="number" id="mobile" placeholder="请填写手机号" th:value="${vo.mobile}">
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <button id="configFormBtn" type="submit" class="btn" onclick="SubmitUserInfo()">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>


<div id="footer"></div>
<script>
    $(function () {
        GetServerData("user/userInfo", function(rd) {
            if (rd.code == 0) {
                var userInfo = rd.data;
                $("#mobile").val(userInfo.mobile)
                $("#nickname").val(userInfo.nickname)
                $("#username").val(userInfo.username)
            }else{
                var message = rd.message
                showWarning(message)

                //
                SubmitLogout();
            }
        });
    })
</script>
</body>
</html>